package com.ilink.teacherservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ilink.teacherservice.entity.PO.study.tree.StudyTreeFavorite;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;

public interface StudyTreeFavoriteService extends IService<StudyTreeFavorite> {
    @Transactional
    String insertFavoriteTree(String userId, Long treeId);

    @Transactional
    String removeFavoriteTree(String userId, String treeId);
    @Transactional
    List<StudyTreeFavorite> getFavoriteListByUserId(String userId);
}
